package com.handl.springcloud.amqp.producer;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.SubscribableChannel;

/**
 * Created by handl on 2017/11/12.
 *
 * 对应SendToReceiver的通道
 *
 *
 *
 */
public interface SendToBinder {
    /**
     * 生产者用来输出的通道
     */
    String OUTPUT = "consumer_get";
    /**
     * 生产者用来消费的通道
     */
    String INPUT = "producer_get";

    @Output(OUTPUT)
    SubscribableChannel consumer_get_server();

    @Input(INPUT)
    SubscribableChannel producer_get_server();
}
